import { createStore } from 'vuex'

const store = createStore({
  state: {
    //  导航栏缩进
    collapsed: false,

    StoreData: ['a', 'b', 'c', 'd', 'e'],
    buttonstatus: true,

    LayoutStatus: true,

    RegusterStatus:true

  },

  mutations: {
    SetStoreData(state, data) {
      state.StoreData = data
    },

    SetLayoutStatus(state, data) {
      state.LayoutStatus = data
    },
    SetRegusterStatus(state, data) {
      state.RegusterStatus = data
    },

    Setbuttonstatus(state, data) {
      state.buttonstatus = data

    }
  },

  // 可以添加 getters、actions 等其他属性
})

export default store
